
binary-tree2:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400500 <_init>:
  400500:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400504:	910003fd 	mov	x29, sp
  400508:	94000038 	bl	4005e8 <call_weak_fn>
  40050c:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400510:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400520 <.plt>:
  400520:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400524:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf740>
  400528:	f947fe11 	ldr	x17, [x16, #4088]
  40052c:	913fe210 	add	x16, x16, #0xff8
  400530:	d61f0220 	br	x17
  400534:	d503201f 	nop
  400538:	d503201f 	nop
  40053c:	d503201f 	nop

0000000000400540 <malloc@plt>:
  400540:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400544:	f9400211 	ldr	x17, [x16]
  400548:	91000210 	add	x16, x16, #0x0
  40054c:	d61f0220 	br	x17

0000000000400550 <__libc_start_main@plt>:
  400550:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400554:	f9400611 	ldr	x17, [x16, #8]
  400558:	91002210 	add	x16, x16, #0x8
  40055c:	d61f0220 	br	x17

0000000000400560 <__gmon_start__@plt>:
  400560:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400564:	f9400a11 	ldr	x17, [x16, #16]
  400568:	91004210 	add	x16, x16, #0x10
  40056c:	d61f0220 	br	x17

0000000000400570 <abort@plt>:
  400570:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400574:	f9400e11 	ldr	x17, [x16, #24]
  400578:	91006210 	add	x16, x16, #0x18
  40057c:	d61f0220 	br	x17

0000000000400580 <__isoc99_scanf@plt>:
  400580:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400584:	f9401211 	ldr	x17, [x16, #32]
  400588:	91008210 	add	x16, x16, #0x20
  40058c:	d61f0220 	br	x17

0000000000400590 <printf@plt>:
  400590:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400594:	f9401611 	ldr	x17, [x16, #40]
  400598:	9100a210 	add	x16, x16, #0x28
  40059c:	d61f0220 	br	x17

Disassembly of section .text:

00000000004005a0 <_start>:
  4005a0:	d280001d 	mov	x29, #0x0                   	// #0
  4005a4:	d280001e 	mov	x30, #0x0                   	// #0
  4005a8:	aa0003e5 	mov	x5, x0
  4005ac:	f94003e1 	ldr	x1, [sp]
  4005b0:	910023e2 	add	x2, sp, #0x8
  4005b4:	910003e6 	mov	x6, sp
  4005b8:	580000c0 	ldr	x0, 4005d0 <_start+0x30>
  4005bc:	580000e3 	ldr	x3, 4005d8 <_start+0x38>
  4005c0:	58000104 	ldr	x4, 4005e0 <_start+0x40>
  4005c4:	97ffffe3 	bl	400550 <__libc_start_main@plt>
  4005c8:	97ffffea 	bl	400570 <abort@plt>
  4005cc:	00000000 	.inst	0x00000000 ; undefined
  4005d0:	004007c0 	.word	0x004007c0
  4005d4:	00000000 	.word	0x00000000
  4005d8:	004007f8 	.word	0x004007f8
  4005dc:	00000000 	.word	0x00000000
  4005e0:	00400878 	.word	0x00400878
  4005e4:	00000000 	.word	0x00000000

00000000004005e8 <call_weak_fn>:
  4005e8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf740>
  4005ec:	f947f000 	ldr	x0, [x0, #4064]
  4005f0:	b4000040 	cbz	x0, 4005f8 <call_weak_fn+0x10>
  4005f4:	17ffffdb 	b	400560 <__gmon_start__@plt>
  4005f8:	d65f03c0 	ret
  4005fc:	00000000 	.inst	0x00000000 ; undefined

0000000000400600 <deregister_tm_clones>:
  400600:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400604:	91010000 	add	x0, x0, #0x40
  400608:	b0000081 	adrp	x1, 411000 <malloc@GLIBC_2.17>
  40060c:	91010021 	add	x1, x1, #0x40
  400610:	eb00003f 	cmp	x1, x0
  400614:	540000a0 	b.eq	400628 <deregister_tm_clones+0x28>  // b.none
  400618:	90000001 	adrp	x1, 400000 <_init-0x500>
  40061c:	f9444c21 	ldr	x1, [x1, #2200]
  400620:	b4000041 	cbz	x1, 400628 <deregister_tm_clones+0x28>
  400624:	d61f0020 	br	x1
  400628:	d65f03c0 	ret
  40062c:	d503201f 	nop

0000000000400630 <register_tm_clones>:
  400630:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400634:	91010000 	add	x0, x0, #0x40
  400638:	b0000081 	adrp	x1, 411000 <malloc@GLIBC_2.17>
  40063c:	91010021 	add	x1, x1, #0x40
  400640:	cb000021 	sub	x1, x1, x0
  400644:	9343fc21 	asr	x1, x1, #3
  400648:	8b41fc21 	add	x1, x1, x1, lsr #63
  40064c:	9341fc21 	asr	x1, x1, #1
  400650:	b40000a1 	cbz	x1, 400664 <register_tm_clones+0x34>
  400654:	90000002 	adrp	x2, 400000 <_init-0x500>
  400658:	f9445042 	ldr	x2, [x2, #2208]
  40065c:	b4000042 	cbz	x2, 400664 <register_tm_clones+0x34>
  400660:	d61f0040 	br	x2
  400664:	d65f03c0 	ret

0000000000400668 <__do_global_dtors_aux>:
  400668:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40066c:	910003fd 	mov	x29, sp
  400670:	f9000bf3 	str	x19, [sp, #16]
  400674:	b0000093 	adrp	x19, 411000 <malloc@GLIBC_2.17>
  400678:	39410260 	ldrb	w0, [x19, #64]
  40067c:	35000080 	cbnz	w0, 40068c <__do_global_dtors_aux+0x24>
  400680:	97ffffe0 	bl	400600 <deregister_tm_clones>
  400684:	52800020 	mov	w0, #0x1                   	// #1
  400688:	39010260 	strb	w0, [x19, #64]
  40068c:	f9400bf3 	ldr	x19, [sp, #16]
  400690:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400694:	d65f03c0 	ret

0000000000400698 <frame_dummy>:
  400698:	17ffffe6 	b	400630 <register_tm_clones>

000000000040069c <createbitree>:
  40069c:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4006a0:	910003fd 	mov	x29, sp
  4006a4:	f9000fa0 	str	x0, [x29, #24]
  4006a8:	9100bfa1 	add	x1, x29, #0x2f
  4006ac:	90000000 	adrp	x0, 400000 <_init-0x500>
  4006b0:	9122a000 	add	x0, x0, #0x8a8
  4006b4:	97ffffb3 	bl	400580 <__isoc99_scanf@plt>
  4006b8:	3940bfa0 	ldrb	w0, [x29, #47]
  4006bc:	7100801f 	cmp	w0, #0x20
  4006c0:	54000081 	b.ne	4006d0 <createbitree+0x34>  // b.any
  4006c4:	f9400fa0 	ldr	x0, [x29, #24]
  4006c8:	f900001f 	str	xzr, [x0]
  4006cc:	14000012 	b	400714 <createbitree+0x78>
  4006d0:	d2800300 	mov	x0, #0x18                  	// #24
  4006d4:	97ffff9b 	bl	400540 <malloc@plt>
  4006d8:	aa0003e1 	mov	x1, x0
  4006dc:	f9400fa0 	ldr	x0, [x29, #24]
  4006e0:	f9000001 	str	x1, [x0]
  4006e4:	f9400fa0 	ldr	x0, [x29, #24]
  4006e8:	f9400000 	ldr	x0, [x0]
  4006ec:	3940bfa1 	ldrb	w1, [x29, #47]
  4006f0:	39000001 	strb	w1, [x0]
  4006f4:	f9400fa0 	ldr	x0, [x29, #24]
  4006f8:	f9400000 	ldr	x0, [x0]
  4006fc:	91002000 	add	x0, x0, #0x8
  400700:	97ffffe7 	bl	40069c <createbitree>
  400704:	f9400fa0 	ldr	x0, [x29, #24]
  400708:	f9400000 	ldr	x0, [x0]
  40070c:	91004000 	add	x0, x0, #0x10
  400710:	97ffffe3 	bl	40069c <createbitree>
  400714:	d503201f 	nop
  400718:	a8c37bfd 	ldp	x29, x30, [sp], #48
  40071c:	d65f03c0 	ret

0000000000400720 <visit>:
  400720:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400724:	910003fd 	mov	x29, sp
  400728:	39007fa0 	strb	w0, [x29, #31]
  40072c:	b9001ba1 	str	w1, [x29, #24]
  400730:	39407fa1 	ldrb	w1, [x29, #31]
  400734:	90000000 	adrp	x0, 400000 <_init-0x500>
  400738:	9122c000 	add	x0, x0, #0x8b0
  40073c:	b9401ba2 	ldr	w2, [x29, #24]
  400740:	97ffff94 	bl	400590 <printf@plt>
  400744:	d503201f 	nop
  400748:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40074c:	d65f03c0 	ret

0000000000400750 <preorder_traverse>:
  400750:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400754:	910003fd 	mov	x29, sp
  400758:	f9000fa0 	str	x0, [x29, #24]
  40075c:	b90017a1 	str	w1, [x29, #20]
  400760:	f9400fa0 	ldr	x0, [x29, #24]
  400764:	f100001f 	cmp	x0, #0x0
  400768:	54000260 	b.eq	4007b4 <preorder_traverse+0x64>  // b.none
  40076c:	f9400fa0 	ldr	x0, [x29, #24]
  400770:	39400000 	ldrb	w0, [x0]
  400774:	b94017a1 	ldr	w1, [x29, #20]
  400778:	97ffffea 	bl	400720 <visit>
  40077c:	f9400fa0 	ldr	x0, [x29, #24]
  400780:	f9400402 	ldr	x2, [x0, #8]
  400784:	b94017a0 	ldr	w0, [x29, #20]
  400788:	11000400 	add	w0, w0, #0x1
  40078c:	2a0003e1 	mov	w1, w0
  400790:	aa0203e0 	mov	x0, x2
  400794:	97ffffef 	bl	400750 <preorder_traverse>
  400798:	f9400fa0 	ldr	x0, [x29, #24]
  40079c:	f9400802 	ldr	x2, [x0, #16]
  4007a0:	b94017a0 	ldr	w0, [x29, #20]
  4007a4:	11000400 	add	w0, w0, #0x1
  4007a8:	2a0003e1 	mov	w1, w0
  4007ac:	aa0203e0 	mov	x0, x2
  4007b0:	97ffffe8 	bl	400750 <preorder_traverse>
  4007b4:	d503201f 	nop
  4007b8:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007bc:	d65f03c0 	ret

00000000004007c0 <main>:
  4007c0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007c4:	910003fd 	mov	x29, sp
  4007c8:	52800020 	mov	w0, #0x1                   	// #1
  4007cc:	b9001fa0 	str	w0, [x29, #28]
  4007d0:	f9000bbf 	str	xzr, [x29, #16]
  4007d4:	910043a0 	add	x0, x29, #0x10
  4007d8:	97ffffb1 	bl	40069c <createbitree>
  4007dc:	f9400ba0 	ldr	x0, [x29, #16]
  4007e0:	b9401fa1 	ldr	w1, [x29, #28]
  4007e4:	97ffffdb 	bl	400750 <preorder_traverse>
  4007e8:	d503201f 	nop
  4007ec:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007f0:	d65f03c0 	ret
  4007f4:	00000000 	.inst	0x00000000 ; undefined

00000000004007f8 <__libc_csu_init>:
  4007f8:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  4007fc:	910003fd 	mov	x29, sp
  400800:	a901d7f4 	stp	x20, x21, [sp, #24]
  400804:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf740>
  400808:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf740>
  40080c:	91374294 	add	x20, x20, #0xdd0
  400810:	913722b5 	add	x21, x21, #0xdc8
  400814:	a902dff6 	stp	x22, x23, [sp, #40]
  400818:	cb150294 	sub	x20, x20, x21
  40081c:	f9001ff8 	str	x24, [sp, #56]
  400820:	2a0003f6 	mov	w22, w0
  400824:	aa0103f7 	mov	x23, x1
  400828:	9343fe94 	asr	x20, x20, #3
  40082c:	aa0203f8 	mov	x24, x2
  400830:	97ffff34 	bl	400500 <_init>
  400834:	b4000194 	cbz	x20, 400864 <__libc_csu_init+0x6c>
  400838:	f9000bb3 	str	x19, [x29, #16]
  40083c:	d2800013 	mov	x19, #0x0                   	// #0
  400840:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400844:	aa1803e2 	mov	x2, x24
  400848:	aa1703e1 	mov	x1, x23
  40084c:	2a1603e0 	mov	w0, w22
  400850:	91000673 	add	x19, x19, #0x1
  400854:	d63f0060 	blr	x3
  400858:	eb13029f 	cmp	x20, x19
  40085c:	54ffff21 	b.ne	400840 <__libc_csu_init+0x48>  // b.any
  400860:	f9400bb3 	ldr	x19, [x29, #16]
  400864:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400868:	a942dff6 	ldp	x22, x23, [sp, #40]
  40086c:	f9401ff8 	ldr	x24, [sp, #56]
  400870:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400874:	d65f03c0 	ret

0000000000400878 <__libc_csu_fini>:
  400878:	d65f03c0 	ret

Disassembly of section .fini:

000000000040087c <_fini>:
  40087c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400880:	910003fd 	mov	x29, sp
  400884:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400888:	d65f03c0 	ret
